<template>
	<div class="demo">
		<h2>{{ name }}</h2>
		<h2>{{ address }}</h2>
		<button @click="StudentName">点击获取name</button>
	</div>
</template>


<script>

export default {
	name: 'SchoolS',
	data() {
		return {
			name: '大唐不夜城',
			address: '西安'
		}
	},
	methods: {
		StudentName(){
			this.$bus.$emit('hello',666)
		}
	},
}
</script>


<style scoped>
.demo {
	background-color: blue;
}

.demo>h2 {
	color: white
}
</style>